package com.xxg.socket.impl;

import com.xxg.socket.YmlServerConfig;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;

import java.net.InetSocketAddress;
import java.net.SocketAddress;

/**
 * Created by game group on 2020/12/23.
 */
public class DefaultServerConfig implements YmlServerConfig {
    @Override
    public EventLoopGroup getBoosGroup() {
        return new NioEventLoopGroup();
    }
    @Override
    public EventLoopGroup getWorkerGroup() {
        return new NioEventLoopGroup();
    }
    @Override
    public SocketAddress getSocketAddress() {
        return new InetSocketAddress("127.0.0.1",8080);
    }
}
